package com.ocom.human.feignclient;

import com.ocom.common.constant.MqSimpleApiUrl;
import com.ocom.common.request.wx.UserAccessPageSetAccessRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "mq-simple")
public interface MqSimple {

    @PostMapping(MqSimpleApiUrl.URL_ChangeAccess)
    public Result ChangeAccess(@RequestBody UserAccessPageSetAccessRequest request);

    // 初始化账号(addXFAccount)
    @PostMapping(MqSimpleApiUrl.URL_AddXFAccount)
    public Result AddXFAccount(@RequestBody Map<String,Object> map);
}
